<section ng-controller="navbarController as vm">
    <div class="navbar navbar-inverse navbar-static-top" role="navigation">
        <div class="navbar-header">
            <a class="navbar-brand">ACM-Merchant</a>
        </div>
        <ul class="nav navbar-nav" style="margin-left:14%;">
            <li ng-repeat="menu in vm.menus track by $index">
                <a ui-sref="m.{{menu.state}}">{{menu.displayName}}</a>
            </li>
        </ul>
        <div style="float:right;">

            <ul class="nav navbar-nav">
                <li>
                    <button ng-click="vm.logout()" style="background: transparent; border: none; color: burlywood; margin-right: 10px">Logout</button>
                    <!--<a href="#" ng-click="logout()">LogOut</a>-->
                </li>
            </ul>

        </div>
    </div>
    <ui-view></ui-view>
</section>